package com.xmg.server.goods.service.impl;

import com.xmg.server.goods.mapper.ProductDescMapper;
import com.xmg.shop.api.domain.ProductDesc;
import com.xmg.shop.api.service.IProductDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by lenovo on 2017/11/16.
 */
@Service
public class ProductDescServiceImpl implements IProductDescService{
    @Autowired
    private ProductDescMapper productDescMapper;

    @Override
    public int save(ProductDesc record) {
        return productDescMapper.insert(record);
    }

    @Override
    public ProductDesc selectByPrimaryKey(Long id) {
        return productDescMapper.selectByPrimaryKey(id);
    }

    @Override
    public ProductDesc getDescByProductId(Long ProductId) {
        return productDescMapper.getDescByProductId(ProductId);
    }
}
